<div class="container main-content">
  <h1>Privatne poruke</h1>
  
  <table class="admin">
    <tr>
      <th class="admin narrow"></th>
      <th class="admin">Naslov</th>
      <th class="admin">Poslao</th>
    </tr>
  
  <% @pms.each do |pm| %>
    <tr <% unless pm.read %>class="hilight"<%end%> >
      <td class="admin narrow"><%= link_to image_tag('black_icons/delete.png', :class => "button"), pm, :confirm => 'Are you sure?', :method => :delete %></td>
      <td class="admin"><%= link_to pm.title, pm %></td>
      <td class="admin"><%= pm.sender.username %></td>
    </tr>
  <% end %>
  </table>
  
  <br />
  
  <div class='admin_links'>
  	<%= link_to 'Nova poruka', new_pm_path %>
  </div>
</div>